package org.whb.org.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.whb.basic.service.impl.BaseServiceImpl;
import org.whb.org.domain.SystemDictionaryType;
import org.whb.org.mapper.SystemDictionaryDetailsMapper;
import org.whb.org.mapper.SystemDictionaryTypeMapper;
import org.whb.org.service.ISystemDictionaryTypeService;


@Service
public class SystemDictionaryTypeServiceImpl extends BaseServiceImpl<SystemDictionaryType> implements ISystemDictionaryTypeService {

    @Autowired
    private SystemDictionaryTypeMapper systemDictionaryTypeMapper;
    @Autowired
    private SystemDictionaryDetailsMapper systemDictionaryDetailsMapper;

    @Override
    public void remove(Long id) {
        systemDictionaryDetailsMapper.deleteByRole(id);
        systemDictionaryTypeMapper.delete(id);
    }
}


